import { requestClient } from '#/api/request'
import type { ApiPagination } from '#types/utils'
import type { WorkspaceData } from './model/workspace'

// 工作台接口
export default class WorkspacerApi {
    static get inst() {
        return WorkspacerApi._inst || (WorkspacerApi._inst = new WorkspacerApi())
    }
    private static _inst: WorkspacerApi

    /**
     * 汇总数据
     */
    getData() {
        return requestClient.get<ApiPagination<WorkspaceData>>('/dataStatistics/summary')
    }
}
